package com.fuxiong.dao;


import com.fuxiong.pojo.User;
import com.fuxiong.pojo.query.UserQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    //查询所有用户信息
    public List<User> selectAllUser();

    //根据用户名来查询用户信息，  并分页展示
    public List<User> getUserByName(UserQuery userQuery);

    //根据id删除用户
    public int deleteUserById(Integer id);

    //根据id查询用户
    public User queryUserById(Integer id);
    
    //修改用户信息
    public int updateUser(User user);

    //新增
    int addUser(User user);
}
